package com.bluemobi.system.model;

import java.io.Serializable;
import java.util.List;

import com.bluemobi.system.vo.MenuVo;
import com.bluemobi.system.vo.RoleVo;

/**
 * 系统用户实体对象
 */
public class SysUser implements Serializable {

	private static final long serialVersionUID = 1L;

	private String sessionId;// 存储的sessionId

	private String suId;// 主键

	private String loginName;// 登录名称

	private String password;// 登录密码

	private Integer isLeader;// 是否管理员

	private String realName;// 真是姓名 默认为空

	private Integer age;// 年龄 默认为0

	private Integer gender;// 性别 0为男、1为女 2为未知 默认为2

	private String email;// 邮件地址 默认为空

	private String phone;// 联系电话 默认为空

	private String address;// 联系地址 默认为空

	private String headPortrait;// 头像地址 默认为空

	private String orgId;// 组织机构表主键(关联sys_org表主键)

	private String dbPmss;// 数据权限封装

	private String topOrgName;// 顶级部门名称

	private String orgName;// 组织机构名称（外联组织机构表获取）

	private Integer state;// 用户状态 -1 逻辑删除 1为正常、0冻结 默认为1

	private String createDate;// 创建时间 默认为null

	private String lastDate;// 最后登录时间默认为 null

	private RoleVo roleVo;// 用户拥有的角色信息

	private String roleId;// 角色主键

	private String roleName;// 角色名称

	private String roleCode;// 角色编码

	private List<MenuVo> menuVos;// 用户操作菜单

	private String loginIp;// 登录IP

	private String idCard;// 身份证号码

	private String remark;// 备注信息 默认为空

	// 以下属性用于查询
	private String startDate;

	private String endDate;

	private String searchName;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getSuId() {
		return suId;
	}

	public void setSuId(String suId) {
		this.suId = suId;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getHeadPortrait() {
		return headPortrait;
	}

	public void setHeadPortrait(String headPortrait) {
		this.headPortrait = headPortrait;
	}

	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getLastDate() {
		return lastDate;
	}

	public void setLastDate(String lastDate) {
		this.lastDate = lastDate;
	}

	public RoleVo getRoleVo() {
		return roleVo;
	}

	public void setRoleVo(RoleVo roleVo) {
		this.roleVo = roleVo;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public List<MenuVo> getMenuVos() {
		return menuVos;
	}

	public void setMenuVos(List<MenuVo> menuVos) {
		this.menuVos = menuVos;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getSearchName() {
		return searchName;
	}

	public void setSearchName(String searchName) {
		this.searchName = searchName;
	}

	public String getDbPmss() {
		return dbPmss;
	}

	public void setDbPmss(String dbPmss) {
		this.dbPmss = dbPmss;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public Integer getIsLeader() {
		return isLeader;
	}

	public void setIsLeader(Integer isLeader) {
		this.isLeader = isLeader;
	}

	public String getTopOrgName() {
		return topOrgName;
	}

	public void setTopOrgName(String topOrgName) {
		this.topOrgName = topOrgName;
	}
}
